package com.qubuyer.business.order.activity

import android.os.Bundle
import com.qubuyer.base.activity.HostActivity
import com.qubuyer.business.order.PayOrderViewModel
import com.qubuyer.core.app.BaseFragment
import com.qubuyer.repository.entitys.GoodSOResultEntity
import com.qubuyer.repository.entitys.OrderEntity

/**
 * @author Susong
 * @date 创建时间:2019/2/26
 * @description 订单立即付款页
 * & @version
 */
class OrderNowPayActivity : HostActivity<PayOrderViewModel>(){
    override fun contentFragment(): BaseFragment {
        return OrderNowPayFragment()
    }

    override val viewModel: PayOrderViewModel by injectVMByActivity()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        viewModel.mSOEntity = intent.getSerializableExtra("order_so_entity") as GoodSOResultEntity?
        viewModel.mOrderEntity = intent.getSerializableExtra("order_entity") as OrderEntity?
    }
}
